home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12220 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: hptemp1.cc.umr.edu!nexus
  2. From: mcastle@umr.edu (Mike Castle)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Questions about include files, and make file error
  5. Date: 29 Mar 1996 13:15:52 GMT
  6. Organization: University of Missouri - Rolla
  7. Message-ID: <4jgnq8$p1t@hptemp1.cc.umr.edu>
  8. References: <4jfqvn$gb6@sue.cc.uregina.ca>
  9. NNTP-Posting-Host: dialup-pkr-5-12.network.umr.edu
  10. Originator: nexus@thune.mrc.org
  11.  
  12. In article <4jfqvn$gb6@sue.cc.uregina.ca>,
  13. Shayne G. Wright <wright@HERCULES.CS.UREGINA.CA> wrote:
  14. >        The first question is, can it be setup so that
  15. >    an #include <ncurses.h> statement, or similar, would
  16. >    cause the compiler to look in /usr/include/ncurses
  17. >    or any other subdirectory, or do I have to make use of
  18. >    symbolic links and/or move the *.h files to /usr/include/
  19.  
  20. Add -I/usr/include/ncurses to the command line.
  21. Change to #include <ncurses/ncurses.h>
  22.  
  23. Course, the most recent versions of ncurses replaces curses for
  24. linux, so you should probably move that file into
  25. /usr/include/curses.h
  26.  
  27. >        The second question is, is there anything wrong
  28. >    with this line from a Makefile
  29. >
  30. >    ld -shared,-Wl,-soname,$(SONAME) -o $@ $^
  31.  
  32. -Wl is an option to gcc, telling it to pass it on to ld.  Try
  33. replaced 'ld' with 'gcc' in that line.  I don't think you need
  34. the ',' after '-shared'.
  35.  
  36. mrc
  37. -- 
  38. Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  39.   mcastle@cs.umr.edu     and be right all the time, or not work at all
  40.    mcastle@umr.edu       and be right at least twice a day.  -- mrc
  41.     We are all of us living in the shadow of Manhattan.  -- Watchmen
  42.